package com.swordxu.yim.android.imlib.network.common;

import io.netty.channel.Channel;

/**
 * Created by 徐晓明 on 2015/1/8.
 */
public class LoginManager {
    private static LoginManager loginManager;
    private static Channel channel;

    public static LoginManager instance(Channel channel) {
        synchronized (LoginManager.class) {
            if (loginManager == null) {
                loginManager = new LoginManager();
                loginManager.channel = channel;
            }
            return loginManager;
        }
    }

    /**
     * 处理客户端登录请求
     * @param buffer
     */
    public void login(String buffer) {

    }
}
